import * as React from 'react';
import type { DividerValue } from '..';

import styles from './index.less';

interface IDividerViewProps {
  data: DividerValue;
}

const DividerView: React.FunctionComponent<IDividerViewProps> = (props) => (
  <div className={styles.divider} style={{ height: `${props.data.height}px` }}>
    分割线
  </div>
);

export default DividerView;
